package com.jianyi.system.dao.log;

import com.jianyi.system.model.entity.SysLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 系统日志
 *
 * @author ernest
 * @date 2018-04-10 14:56:41
 */
@Repository
public interface SysLogDao extends PagingAndSortingRepository<SysLog, Long>  {
    Page<SysLog> findByMethod(String method, Pageable pageable);

    Page<SysLog> findByOperation(String operation, Pageable pageable);
}
